/*
 * Shader.h
 *
 *  Created on: 29 mars 2011
 *      Author: seeme
 */

#ifndef SHADER_H_
#define SHADER_H_

#include "../../Resource.h"
#include <sstream>
#include <fstream>

#include <GL/glew.h>


class Shader: public Resource{
public:
	Shader();
	virtual ~Shader();

	Shader(std::string fileName, std::string file, GLenum type);

	size_t getSize();

	bool create();
	void destroy();

	const GLuint getShaderId();

private:
	GLchar* m_shader;
	GLuint m_shaderId;
	GLenum m_shaderType;
};

#endif /* SHADER_H_ */
